package com.kingyun.gpsinspection.purificationservice.facade.service.tdm;

import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.ProductionCommand;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.ProductionCommandVo;

import java.util.List;
import java.util.Map;

/**
 * Created by liyi on 2016/11/21.
 * 生产指令 Service
 */
public interface ProductionCommandService {
    /**
     * 生产指令列表
     *
     * @param employeeVo
     * @param productionCommand
     * @return
     * @throws Exception
     */
    Map<String, Object> list(EmployeeVo employeeVo, ProductionCommandVo productionCommand)throws Exception;
    /**
     * 根据生产指令ID获取生产指令信息
     * @param commandId
     * @return
     * @throws Exception
     */
    ProductionCommandVo findProductionCommandById(String commandId)throws Exception;
    /***
     * 查询所有生产指令
     * @return
     * @throws Exception
     */
    List<ProductionCommand> queryAll()throws Exception;
    /**
     * 保存
     *
     * @param employeeVo
     * @param productionCommand
     * @param uploadFiles
     * @param deletedFiles
     * @return
     * @throws Exception
     */
    int save(EmployeeVo employeeVo, ProductionCommand productionCommand, String uploadFiles, String deletedFiles);
    /**
     * 更新
     * @param employeeVo
     * @param productionCommand
     * @param deletedFiles
     * @throws Exception
     */
    int update(EmployeeVo employeeVo, ProductionCommand productionCommand, String uploadFiles, String deletedFiles);
    /**
     * 删除:软删除
     * @param list
     * @return
     */
    int delByIds(List<String> list)  throws Exception;
}
